<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>  
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ include file="/WEB-INF/jsp/common/taglibs.jsp" %> 


<c:set var="appPath" scope="application" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>

<html class="no-js">
<head>
	<meta charset="utf-8">
	<title>Insert title here</title>
	<script src="http://www.modernizr.com/downloads/modernizr-2.0.6.js"></script>	
	<link href="${appPath }/resource/css/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>

<style type="text/css">	
	body {font-size:13px}
	table, td, th{border:0px solid black;line-height:30px;}
	.center1 {margin-left: auto;margin-right: auto;}
	.trHeader {background-color: #cccccc;font-size: 14px;text-align: left;font-weight: 400;color: #000000; border-bottom:1 solid #000000; }
	.trContent {background-color: #efefef;}	
	.b1f, .b2f, .b3f, .b4f{font-size:1px; overflow:hidden; display:block; background:#D4D4D4; border-right:1px solid #A4A4A4; border-left:1px solid #A4A4A4;}
	.b1f {height:1px; margin:0 5px; background:#666666;}
	.b2f {height:1px; margin:0 3px; border-right-width:2px; border-left-width:2px;}
	.b3f {height:1px; margin:0 2px;}
	.b4f {height:2px; margin:0 1px;}
	.archead {background:#A4A4A4;}
	div.arccontent, div.archead{ padding-left:15px; color:#FFFFFF; border-right:1px solid #666666; border-left:1px solid #666666;}
	div.archead h1 {margin:0px; background:#A4A4A4; font-size:22px;}
	.arccontent {background:#D4D4D4; padding-top:5px;}
	.trContent td {border-bottom:1px solid #D2D9E7;border-right:1px solid #D2D9E7;}
	
</style>

<body>

<table onclick="window.close();" style="cursor: pointer;">
	<tr>
		<td>
			<div class="boxes" style="position:fixed;right:5px;top:20px;z-index:99;background-color: #627AAD;height: 40px;border-style:solid;border-width:1px;border-color: #A3A6AF ;">
				<table style="font-size: 14px;color: white;letter-spacing: 02px;padding-top: 0px ;">
					<tr>
						<td style="text-align: left;padding:5px;">
							<span style="color: #FFFFFF">
								關閉視窗
							</span>
						</td>
					</tr>
				</table>
			</div>		
		</td>
	</tr>		
</table>


<form:form method="post" modelAttribute="AgricultureAndFoodForm" >
	<table style="width:800px;border:1px solid #D2D9E7;">	
		<tr class="trHeader">
			<td style="padding-left:20px;" colspan="2">
				資料編號：
				<span style="color:green;font-weight:600;letter-spacing: 4px;">
					${AgricultureAndFoodForm.rec_no}
				</span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="width:25%;text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>原文標題
			</td> 
			<td style="padding-left: 10px;">
				<span id="show_title_o" class="showField" >
					${AgricultureAndFoodForm.title_o == '' ? '&nbsp;' : AgricultureAndFoodForm.title_o}
				</span>
			</td> 
		</tr>
		<%-- 
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">中譯標題</td> 
			<td style="padding-left: 10px;">
				<span id="show_title_c" class="showField" >
					${AgricultureAndFoodForm.title_c == '' ? '&nbsp;' : AgricultureAndFoodForm.title_c}
				</span>
			</td> 
		</tr>
		--%>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>作者
			</td> 
			<td style="padding-left: 10px;">
				<span id="show_author" class="showField" >
					${AgricultureAndFoodForm.author == '' ? '&nbsp;' : AgricultureAndFoodForm.author}
				</span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">作者服務機構</td> 
			<td style="padding-left: 10px;">
				<span id="show_affiliation" class="showField" >
					${AgricultureAndFoodForm.affiliation == '' ? '&nbsp;' : AgricultureAndFoodForm.affiliation}
				</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">出版機構</td> 
			<td style="padding-left: 10px;">
				<span id="show_publisher" class="showField" >
					${AgricultureAndFoodForm.publisher == '' ? '&nbsp;' : AgricultureAndFoodForm.publisher}
				</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">期刊名稱</td> 
			<td style="padding-left: 10px;">
				<span id="show_journal" class="showField" >
					${AgricultureAndFoodForm.journal == '' ? '&nbsp;' : AgricultureAndFoodForm.journal}
				</span>
			</td> 
		</tr>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">卷期頁碼</td> 
			<td style="padding-left: 10px;">
				<span id="show_vol_page" class="showField" >
					${AgricultureAndFoodForm.vol_page == '' ? '&nbsp;' : AgricultureAndFoodForm.vol_page}
				</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>出版年
			</td> 
			<td style="padding-left: 10px;">
				<span id="show_year" class="showField" >
					${AgricultureAndFoodForm.year}
				</span>
			</td> 
		</tr>
		<%-- a
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>語文
			</td> 
			<td style="padding-left: 10px;">
				<span id="show_language" class="showField" >
					${AgricultureAndFoodForm.codeLanguage.name}
				</span>
			</td> 
		</tr>
		--%>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>資料類型
			</td> 
			<td style="padding-left: 10px;">
				<span id="show_doc_type" class="showField" >
					<c:if test="${AgricultureAndFoodForm.doc_type == 1}" >
						1) 期刊論文
					</c:if>
					<c:if test="${AgricultureAndFoodForm.doc_type == 2}" >
						2) 圖書/圖書章節
					</c:if>
					<c:if test="${AgricultureAndFoodForm.doc_type == 3}" >
						3) 報告
					</c:if>
					<c:if test="${AgricultureAndFoodForm.doc_type == 4}" >
						4) 會議論文/會議論文集
					</c:if>
					<c:if test="${AgricultureAndFoodForm.doc_type == 5}" >
						5) 學位論文
					</c:if>
					<c:if test="${AgricultureAndFoodForm.doc_type == 6}" >
						6) 手冊/教材
					</c:if>
				</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">原文摘要</td> 
			<td style="padding-left: 10px;">
				<span id="show_abstract_o" class="showField" >
					${AgricultureAndFoodForm.abstract_o == '' ? '&nbsp;' : AgricultureAndFoodForm.abstract_o}
				</span>
			</td> 
		</tr>
		<%--
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">中譯摘要</td> 
			<td style="padding-left: 10px;">
				<span id="show_abstract_c" class="showField" >
					${AgricultureAndFoodForm.abstract_c == '' ? '&nbsp;' : AgricultureAndFoodForm.abstract_c}
				</span>
			</td> 
		</tr>
		--%>
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">關鍵詞</td> 
			<td style="padding-left: 10px;">
				<span id="show_keyword_o" class="showField" >
					${AgricultureAndFoodForm.keyword_o == '' ? '&nbsp;' : AgricultureAndFoodForm.keyword_o}
				</span>
			</td> 
		</tr>
		
		<!--  
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">中譯關鍵詞</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="keyword_c" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>
		-->
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">原文網址</td> 
			<td style="padding-left: 10px;">
				<span id="show_url" class="showField" >
					${AgricultureAndFoodForm.url == '' ? '&nbsp;' : AgricultureAndFoodForm.url}
				</span>
			</td> 
		</tr>		
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>原文<!--編號-->
			</td> 
			<td style="padding-left: 10px;">
				<div id="show_files" style="color:blue;">					
					<c:forEach var="filesSet" items="${AgricultureAndFoodForm.filesSet }" varStatus="s">
						${filesSet.original_name}<br/>
					</c:forEach>
				</div>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">探討植物別</td> 
			<td style="padding-left: 10px;">
				<span id="show_plants" class="showField" >
					${AgricultureAndFoodForm.plants_name_ch == '' ? '&nbsp;' : AgricultureAndFoodForm.plants_name_ch}
				</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">探討國別</td> 
			<td style="padding-left: 10px;">
				<span id="show_countries" class="showField" >
					${AgricultureAndFoodForm.countries_code == '' ? '&nbsp;' : AgricultureAndFoodForm.countries_code}
				</span>
			</td> 
		</tr>	
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">
				<span style="color:red;font-weight: 600">＊</span>主題分類<br/>
				<span style="color:red;font-weight: 600">(至多選三項)</span>
			</td> 
			<td style="padding-left: 10px;">
				<span id="show_clazz" class="showField" >
					<ul>			
						<c:if test="${fn:indexOf(AgricultureAndFoodForm.clazz, 'A') != -1}">
							<li>生物安全政策與法規</li>
						</c:if>
						<c:if test="${fn:indexOf(AgricultureAndFoodForm.clazz, 'B') != -1}">
							<li>風險評估與風險管理</li>
						</c:if>
						<c:if test="${fn:indexOf(AgricultureAndFoodForm.clazz, 'C') != -1}">
							<li>社經與貿易議題</li>
						</c:if>
						<c:if test="${fn:indexOf(AgricultureAndFoodForm.clazz, 'D') != -1}">
							<li>公眾認知、教育與參與</li>
						</c:if>
						<c:if test="${fn:indexOf(AgricultureAndFoodForm.clazz, 'E') != -1}">
							<li>其他</li>
						</c:if>
					</ul>
				</span>
			</td> 
		</tr>	
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">研析資料</td> 
			<td style="padding-left: 10px;">
				<span id="show_analyzed" class="showField" >${AgricultureAndFoodForm.analyzed ? '有' : '無'}</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">建立者</td> 
			<td style="padding-left: 10px;">
				<span style="letter-spacing: 0px;color: blue;font-weight: 600;">
					${AgricultureAndFoodForm.users.username}&nbsp;(${AgricultureAndFoodForm.users.fullname})
				</span>
			</td> 
		</tr>
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">建立日期</td> 
			<td style="padding-left: 10px;">
				<span style="letter-spacing: 0px;color: blue;font-weight: 600;">
					${AgricultureAndFoodForm.created}
				</span>
			</td> 
		</tr>
		
		
		<!--  
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">被引標題</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="citation_title" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>	
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">被引作者</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="citation_author" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>	
		
		<tr class="trContent">
			<td style="text-align: right;padding-right:15px;">被引出處</td> 
			<td style="padding-left: 10px;">
				<form:textarea path="citation_source" cssClass="bar_1" cssStyle="width:400px;" rows="5"/>
			</td> 
		</tr>					
		-->	
		
	</table>
</form:form>


</body>
</html>